package com.entity.generate;

import java.util.List;

/**
 * @ClassName LuYouBean
 * @Description TODO
 * @Author 谭庆伟
 * @Date 2020/9/7 19:25
 * @Version 1.0
 **/
public class LuYouBean {

    /**
     * path : demo
     * component : PageView
     * children : [{"path":"demoAdd","component":"() => import('@/pages/demo/demoAdd')","name":"添加模板页"},{"path":"demoEdit","component":"() => import('@/pages/demo/demoEdit')","name":"编辑模板页"},{"path":"demoIndex","component":"() => import('@/pages/demo/demoIndex')","name":"列表模板页"}]
     * meta : {"icon":"form"}
     * name : demo模板
     */
    private String path;
    private String component;
    private List<ChildrenEntity> children;
    private MetaEntity meta;
    private String name;

    public void setPath(String path) {
        this.path = path;
    }

    public void setComponent(String component) {
        this.component = component;
    }

    public void setChildren(List<ChildrenEntity> children) {
        this.children = children;
    }

    public void setMeta(MetaEntity meta) {
        this.meta = meta;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPath() {
        return path;
    }

    public String getComponent() {
        return component;
    }

    public List<ChildrenEntity> getChildren() {
        return children;
    }

    public MetaEntity getMeta() {
        return meta;
    }

    public String getName() {
        return name;
    }

    public class ChildrenEntity {
        /**
         * path : demoAdd
         * component : () => import('@/pages/demo/demoAdd')
         * name : 添加模板页
         */
        private String path;
        private String component;
        private String name;

        public void setPath(String path) {
            this.path = path;
        }

        public void setComponent(String component) {
            this.component = component;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getPath() {
            return path;
        }

        public String getComponent() {
            return component;
        }

        public String getName() {
            return name;
        }
    }

    public class MetaEntity {
        /**
         * icon : form
         */
        private String icon;

        public void setIcon(String icon) {
            this.icon = icon;
        }

        public String getIcon() {
            return icon;
        }
    }
}
